from tkinter import Tk, Entry, Button

def ok():
    print('有本事再点我一下试试')

    
# 创建窗体
fm_main = Tk()

# 放置控件
ent = Entry( fm_main )

btn = Button(fm_main, text = '点我一下试试', command = ok)

ent.pack()
btn.pack()

#等待输入
fm_main.mainloop()
